use axum::{
    routing::{get, post, put, delete},
    Router,
};
use crate::{user::handler::*, Db};

pub fn user_routes() -> Router<Db> {
    Router::new()
        .route("/users", get(list_users).post(create_user))
        .route("/users/:id", get(get_user).put(update_user).delete(delete_user))
}